package com.web.wechat.web.admin;

import com.blue.core.dict.HttpMethod;
import com.blue.http.annotation.Http;
import com.blue.http.message.HttpRequest;
import com.blue.http.message.View;
import com.web.base.user.facade.UserFacade;
import com.web.core.util.Const;
import com.web.wechat.global.util.HttpContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * 后台主页
 *
 * @author zhengjin
 * @since 1.0 2018年06月27日
 */
@Controller("adminIndexController")
@Http(url = "/admin")
public class IndexController
{
	@Autowired
	private UserFacade userFacade;
	@Resource
	private HttpContext httpContext;

	public IndexController()
	{
	}

	@Http(url = "/index", method = HttpMethod.GET)
	public View index(HttpRequest request)
	{
		return View.createBuilder().setView("/admin/index")
				.put(Const.FTL_TITLE, "个人主页")
				.build();
	}


	

}
